<!DOCTYPE HTML>
<html>
	<head>
		<meta charset="utf-8"/>
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
		<meta name="HandheldFriendly" content="true"/>
		<!--<meta name="MobileOptimized" content="320"/>-->
		<link rel="stylesheet" href="../../../css/mui.min.css">
		<title>支付宝支付</title>
		<style type="text/css">
			#total{
				-webkit-user-select:text;
				text-align:right;
				padding:0 1em;
				border: 0px;
				border-bottom:1px solid #ECB100;
				border-radius: 0;
				font-size:16px;
				width:30%;
				outline:none;
			}
			html,body{
				font-size: 18px;
			}
		</style>
	</head>
	<body>
		<div id="dcontent" class="dcontent mui-content-padded">
			<div style="padding: 0.5em 1em;"><hr color="#EEE"/></div>
			<p style="padding: 0 1em;text-align:left;">为DCloud提供的免费软件进行赞助吧。</p>
			<div style="padding: 0 1em;text-align:left">
				捐赠金额：<input id="total" type="number" value="0.01"/> 元
			</div>
			<br/>
			<button id="pay_btn" class="mui-btn mui-btn-warning mui-btn-block">支付宝支付</button>
			<!--<div class="button" onclick="clicked('payment_iap.html')">Apple IAP</div>-->
		</div>
	</body>
	<script src="../../../js/mui.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../../js/common.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../../js/app.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../../js/payment.js" type="text/javascript" charset="utf-8"></script>
	
	<script type="text/javascript">
		document.getElementById("pay_btn").addEventListener('tap',function(){
			var totalAmount = document.getElementById("total").value;
			var subject = "测试APP支付";
			var subdesc = appName + '-' + subject; 
			pay(totalAmount,subject,subdesc);
		},false);
	</script>
</html>